import { RMIObject } from "../../Engine/RMI/RMIObject";
import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { SeqPlayerItemHelper } from "../Public/SeqPlayerItemHelper";
import { DictIntIntHelper } from "../Public/DictIntIntHelper";
import { Exception } from "../../Framework/Util/Exception";
//class AMI_IGuild_getGuildWarehouses
    
    export  class AMI_IGuild_getGuildWarehouses extends RMIObject
    {
        constructor(arg1?: Function, arg2?: Function, arg3?: any)
        {
            super(arg1, arg2);
            this.userObject = arg3;
            this.callFunction = "getGuildWarehouses";
            return;
        }

        public /* override */ __response(arg1: SerializeStream): void
        {
            var __is: SerializeStream;
            var items: Array<any>;
            var moneyMap: Map<any, any> /* flash.utils.Dictionary */;

            var loc1;
            items = null;
            moneyMap = null;
            __is = arg1;
            try 
            {
                items = SeqPlayerItemHelper.read(__is);
                moneyMap = DictIntIntHelper.read(__is);
            }
            catch (__ex)
            {
                this.cdeException(new Exception("ExceptionCodeSerialize", Exception.ExceptionCodeSerialize));
                return;
            }
            this.cdeResponse(items, moneyMap);
            return;
        }

        public cdeResponse(arg1: Array<any>, arg2: Map<any, any> /* flash.utils.Dictionary */): void
        {
            if (this._response)  
            {
                this._response.call(null, this, arg1, arg2);
            }
            return;
        }
    }
